#ifndef _XQNOWMWIDGET_H
#define _XQNOWMWIDGET_H

#include <qwidget.h>
#include <xqtinilayout.h>

class QLabel;
class QTextEdit;
class QLineEdit;

static std::string k_iniLayoutQnoWm   = "ini/setup/layoutQnoWm.ini";
static std::string k_iniSecQnoShow    = "QnoShow";
static std::string k_iniSecFullScreen = "FullScreen";

const QString k_backgroundImageBlue = "images/qnowm_bg_blue.bmp";
const QString k_backgroundImageGreen = "images/qnowm_bg_green.bmp";

/* *********************************************
 * Class XQnoWmWidget 
 * ********************************************/
class XQnoWmWidget:public QWidget
{
	Q_OBJECT

public:
	XQnoWmWidget(QWidget* parent=0, Qt::WFlags f=0);
	int	 setupUi(int in_layout);
	void showQ(uint32_t in_qnumber);
	void switchBackground(QString in_file);

private:
	QLabel*	 m_lbQnoShow;
	uint32_t m_qnumber;  
	bool     m_isShowQno;
	XQtIniLayout m_iniLayout;
};
#endif
